﻿@using TEST_SCCM_MVC_01.Models
@model IQueryable<Collection>
@{
    ViewBag.Title = "Über uns";
}

<div class="row">
    <div class="span4">
        <h3>
            Collections 1</h3>
    </div>
</div>
@{
    CollectionRepository repo = new CollectionRepository();
}
<div class="row">
    <div class="span4">
        <h3>
            Collections COLLROOT
        </h3>
    </div>
</div>
<div class="row">
    <div class="span12">
<table class="table table-bordered">
@foreach (var item in @repo.GetCollectionsByParent("COLLROOT"))
{
    <tr>
        <td>@Html.Encode(item.CollectionID) </td>
        <td>@Html.Encode(item.Name) </td>
        <td>@Html.Encode(item.ParentID) </td>
        <td>@Html.Encode(item.SubColCount.ToString()) </td>
    </tr>
}
</table>
    </div>
</div>
